/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import java.io.Serializable;

/**
 *
 * @author Administrator
 */
public class ControlDTO implements Serializable{
    private boolean flag ;
    private String boss;
    private String slave;

    public ControlDTO(String boss,String slave) {
        this.boss = boss;
        this.slave = slave;
        flag=true;
    }   

    public String getBoss() {
        return boss;
    }

    public void setBoss(String boss) {
        this.boss = boss;
    }

    public boolean getFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getSlave() {
        return slave;
    }

    public void setSlave(String slave) {
        this.slave = slave;
    }
    
    public boolean isBoss(String boss){
        return this.boss.equalsIgnoreCase(boss);
    }
    
    public boolean isSlave(String slave) {
        return this.slave.equalsIgnoreCase(slave);
    }
}
